
<a routerLink="/a" routerLinkActive="active">a</a>
<a routerLink="/b">b</a>
<a routerLink="/c">c</a>
<router-outlet></router-outlet>

<!-- <p>{{myname}}</p> -->
<form action="" (ngSubmit)="mysubmit()">
  <input type="text" name="name" [(ngModel)]="user.myname"><br>
  <input type="password" name="password" [(ngModel)]= "user.password"><br>
  <input type="radio" name="sex" value="0" [(ngModel)]="user.sex">女
  <input type="radio" name="sex" value="1" [(ngModel)]="user.sex">男<br>
  <input type="checkbox" name="aihao" value="" [(ngModel)]="user.aihao.paobu" ng-true-value="true" ng-false-value="false">跑步
  <input type="checkbox" name="aihao" value="" [(ngModel)]="user.aihao.lanqiu" ng-true-value="true" ng-false-value="false">篮球
  <input type="checkbox" name="aihao" value="" [(ngModel)]="user.aihao.huahua" ng-true-value="true" ng-false-value="false">画画<br>
  <select name="aihao" id="" [(ngModel)]="user.zu">
    <option value="0">管理员</option>
    <option value="1">来宾</option>
  </select><br>
  <textarea name="jieshao" rows="8" cols="10" [(ngModel)]="user.jieshao"></textarea>
  <input type="submit" value="提交">
</form>

<h1 style="width:500px;" class="tc22" [ngClass]="myclass" [ngStyle]="mystyle">新闻标题:{{config.title}}</h1>
<p>正文:<span>{{config.body | slice:0:24}} </span> <i *ngIf="config.body.length>24">...</i></p>
<app-sub (myevent)="changimg()"></app-sub>

<!-- <img [src]="myimgsrc" (click)="changimg()" alt=""> -->
